package JDBC;

public class Student {
	private int sid;
	private String name;
	private String sex;
	private int cid;//班级编号

	public  Student(){

	}
//用于添加的时候使用
	public Student( String name, String sex, int cid) {
		super();
		this.name = name;
		this.sex = sex;
		this.cid = cid;
	}
//用于修改的时候使用
	public Student(int sid, String name, String sex, int cid) {
		super();
		this.sid = sid;
		this.name = name;
		this.sex = sex;
		this.cid = cid;
	}

	public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}
}
